home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: cs.dal.ca!usenet
- From: Dan Kelley <d.kelley@dal.ca>
- Subject: is <string.h> standard in c++?
- Content-Type: text/plain; charset=us-ascii
- Message-ID: <313B0603.1CD@dal.ca>
- Sender: usenet@cs.dal.ca (USENET News)
- Nntp-Posting-Host: skye.phys.ocean.dal.ca
- Content-Transfer-Encoding: 7bit
- Organization: Math, Stats & CS, Dalhousie University, Halifax, NS, Canada
- Mime-Version: 1.0
- Date: Mon, 4 Mar 1996 15:02:27 GMT
- X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.4 sun4m)
-
- I notice a <string.h> file in the 2.7.2 gnu g++ include directory, in a subdirectory called "std". Does this
- imply that the class defined therein is standard in some sense?
-
- I'd love to use a string class instead of messing around with lots of "new char" and "delete []" code, but I
- would need first to know that the class is universal, and frozen, in some sense.
-
- Although I read about string.h in Stroustrup's 2nd edition of "the C++ programming language", he prefaces his
- comments (section 7.11) by "here is a more realistic version of class string". Previously I had taken this
- to mean that he was just giving the class as a sort of demonstration, so that the class features might
- change.
-
- So the simple question is: "is there a standard string class in c++, and does the GNU g++, version 2.7.2, do
- this class correctly"?
-
- If there is a FAQ that tells me about this, please accept my apologies.
-
- Thanks in advance.
-
- --
- Dan E. Kelley internet: Dan.Kelley@Dal.CA
- Oceanography Department phone: (902)494-1694
- Dalhousie University fax: (902)494-2885
- Halifax, NS, CANADA, B3H 4J1 WWW: http://www.phys.ocean.dal.ca/~kelley
-